package com.wudd;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

import com.wudd.filter.MyGatewayFilter;

@EnableZuulProxy
@SpringCloudApplication
public class GateWayApplication {

	public static void main(String[] args) {
		System.out.println("gateway service start....");
		new SpringApplicationBuilder(GateWayApplication.class).web(true).run(args);
		System.out.println("gateway service start success!");
	}

	@Bean
	public MyGatewayFilter getGatewayFilter() {
		return new MyGatewayFilter();
	}

}
